package com.tttshaoqi.server.mapper;

import com.tttshaoqi.pojo.entity.Flight;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author tttshaoqi
 * &#064;create 2025-04-21-20:29
 */
@Mapper
public interface FlightMapper {
    List<Flight> getList(String airlineName, String departureCity, String arrivalCity);

    void update(Flight flight);

    void add(Flight flight);

    @Select("select * from flight where id = #{id}")
    Flight getById(Integer id);

    void deleteById(Integer id);
}
